package com.zegome.uis;

import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle;

public class ZTextButton extends ZButton{

	private Label text;
	
	public ZTextButton(String mText, BitmapFont font, TextureRegion up, TextureRegion down) {
		super(up, down);
		LabelStyle style = new LabelStyle();
		style.font = font;
		text = new Label(mText, style);
		text.setX(getWidth()/2-text.getWidth()/2);
		super.addActor(text);
	}
}
